/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TECNICASUTILIZADAS")
public class TecnicasUtilizadasProteu implements Serializable{

    @Id
    @Column(name="TCU_ST_CODIGO")
    private String tcuStCodigo;
    @Column(name="TCU_ST_DESCRICAO")
    private String tcuStDescricao;

    public String getTcuStCodigo() {
        return tcuStCodigo;
    }

    public void setTcuStCodigo(String tcuStCodigo) {
        this.tcuStCodigo = tcuStCodigo;
    }

    public String getTcuStDescricao() {
        return tcuStDescricao;
    }

    public void setTcuStDescricao(String tcuStDescricao) {
        this.tcuStDescricao = tcuStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TecnicasUtilizadasProteu other = (TecnicasUtilizadasProteu) obj;
        if ((this.tcuStCodigo == null) ? (other.tcuStCodigo != null) : !this.tcuStCodigo.equals(other.tcuStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 17 * hash + (this.tcuStCodigo != null ? this.tcuStCodigo.hashCode() : 0);
        return hash;
    }



}
